package com.example.c201901090104;

import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;

import java.util.List;
@Dao
public interface UserDao {
        @Insert
        void insert(User user);
        @Delete
        void delete(User user);
        @Query("select * from user")
        List<User> findAllUser();
        @Query("select * from user where id= :id")
        List<User> findUserById(String id);
}
